package com.money.tracker.auth.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * <p>
 *
 * <p>
 *
 * @author zhangshuai
 * &#064;@date 2024/10/07
 */
@Getter
@AllArgsConstructor
public enum VisibleEnum {
    YES(1, "显示"),
    NO(0, "隐藏");

    private final Integer code;
    private final String desc;


    public static Boolean isShow(Integer code) {
        return YES.getCode().equals(code);
    }
}
